package com.tao.power.Service;

import com.tao.power.Dto.Result;
import com.tao.power.Dto.UserRolesDto;
import com.tao.power.Pojo.Roler;
import com.tao.power.Pojo.User;
import com.tao.power.Pojo.UserRoler;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
import java.util.List;

public interface UserService {

    Result insertUser(User user) throws Exception;
    Result queryUser(int count,int page);
    Result updateUser(User user) throws Exception;
    Result deleteUser(Integer id);

    Result queryUserBySearch(String username, String name, String status, Date startTime, Date endTime,Integer currentPage,Integer pageSize);

    void exportUser(List<Integer> idList,HttpServletResponse response) throws Exception;

    Result importUser(MultipartFile multipartFile,HttpServletResponse response) throws IOException;

    Result setRoles(UserRolesDto userRolesDto);

    Result batchDel(List<Integer> idList);

    Result queryRolerById(Integer id);

    void uploadMoBan(HttpServletResponse response) throws Exception;

    Result updateStatus(User user);
}
